package com.me.exbean;

import com.lcx.annotation.Autowired;
import com.lcx.annotation.IOCValue;
import com.lcx.annotation.JsObject;
import com.me.common.ToolsList;
import javafx.stage.Stage;

import java.util.List;

@IOCValue
@JsObject(name = "tools")
public class GetToolsList {

    @Autowired
    private Stage stage;

    @JsObject
    public List getToolsList(){
        return ToolsList.getAll();
    }

    @JsObject
    public void setAppName(String name){
        stage.setTitle(name);
    }

}
